const app = {
    namespaced: true,
    state: {
        year: '',
        domainStatus: false,
        parkName: '上海漕河泾新兴技术开发区',
        lal: [121.410219, 31.178222]
    },
    mutations: {
        SET_YEAR: (state, data) => {
            state.year = data
        },
        SET_DOMAINSTATUS: (state, data) => {
            state.domainStatus = data
        },
        SET_PARK_NAME: (state, data) => {
            state.parkName = data
        },
        SET_LAL: (state, data) => {
            state.lal = data
        }
    },
    actions: {
        setYear({commit}, data) {
            commit('SET_YEAR', data)
        },
        setDomain({commit}, data) {
            commit('SET_DOMAINSTATUS', data)
        }

    }
}
export default app
